import request from "../../utils/request";

const getPage = params => request({
  url: 'v1/group/page',
  method: 'get',
  params: params
});

const save = (data) => request({
  url: 'v1/group',
  method: 'post',
  data: data
});

const _delete = (data) => request({
  url: `v1/group/${data.Id}`,
  method: 'delete',
  data: data
});

export default {
  getPage,
  save,
  _delete
}
